package com.lelefly.base.serviceImp;

import java.util.List;

import javax.annotation.Resource;

import org.apache.commons.lang.StringUtils;
import org.springframework.stereotype.Service;

import com.lelefly.base.daoimp.BaseDao;
import com.lelefly.base.model.Result;
import com.lelefly.base.model.ValidateErrors;
import com.lelefly.base.po.FarmlandInfo;
import com.lelefly.base.po.UavMaintenance;
import com.lelefly.base.po.UavMissionTj;
import com.lelefly.constant.Constant;
import com.lelefly.handleexecption.ServiceExecption;
import com.lelefly.handleexecption.ValidateExecption;

@Service
public class UavMissionService {
	
	@Resource
	public BaseDao baseDao;
	

	@SuppressWarnings("null")
	public Result<UavMissionTj> addUavMissionTj(List<UavMissionTj> info) {
		Result<UavMissionTj> result = new Result<>();
		try {
			baseDao.saveObjects(info);
			result.setState(Constant.HTTP_STATUS_OK);
		}catch(Exception e){
			result.setState(Constant.HTTP_STATUS_FAIL);
			result.setMes(Constant.HTTP_STATUS_DEFERROR);
		}
		return result;
	}

}
